<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Cover Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="../../dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="cover.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

    <div class="site-wrapper">

        <div class="site-wrapper-inner">

            <div class="cover-container">

                <!--<div class="masthead clearfix">
                    <div class="inner">
                        <h3 class="masthead-brand">Lucky</h3>
                        <nav>
                            <ul class="nav masthead-nav">
                                <li class="active"><a href="#">Home</a></li>
                                <li><a href="#">Features</a></li>
                                <li><a href="#">Contact</a></li>
                            </ul>
                        </nav>
                    </div>
                </div>-->
                <div class="jumbotron" style="background-color:red">
                    <h1 class="cover-heading">请点击下方按钮抽奖</h1>
                    <p class="lead">为感谢广大消费者一直以来对家乐超市的支持，该超市将在国庆7天进行抽奖活动。您所抽到的购物券全场通用，以“欢度国庆 感恩回馈 真情放送”为原则，让广大消费者在超市购物买的放心，用的放心。
                    </p>
                    <h2>快来试试您的手气吧！</h2>
                    <!--<p><a class="btn btn-lg btn-success" href="#" role="button">Sign up today</a></p>-->
                </div>

                <div class="inner cover">

                    <p class="lead">您可能会抽到:</p>
                    <!--<p class="lead">谢谢惠顾，10元消费券，20元消费券，40元消费券</p>-->
                    <div class="lead" id="prize_pool">
                        <p>谢谢惠顾</p>
                        <p>10元消费券（满100即可使用）</p>
                        <p>20元消费券（满200元即可使用）</p>
                        <p>40元消费券（满300元即可使用）</p>
                    </div>
                    <p class="lead">
                        <a href="#" class="btn btn-lg btn-default" onclick="lucky()">My Luck</a>
                    </p>
                </div>

                <div class=" mastfoot ">
                    <div class="inner ">
                        <p>Cover template for <a href="http://getbootstrap.com ">Bootstrap</a>, by <a href="https://twitter.com/mdo ">@mdo</a>.</p>
                    </div>
                </div>

            </div>

        </div>

    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../../assets/js/jquery-1.12.4.min.js "></script>
    <script>
        window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js "><\/script>')
    </script>
    <script src="../../dist/js/bootstrap.min.js "></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js "></script>
    <script>
        function lucky() {
            var pool = ['谢谢惠顾', '恭喜抽中10元购物券', '恭喜抽中20元购物券', '恭喜抽中30元购物券'];
            var cond = ['', '（满100即可使用）', '（满200即可使用）', '（满300即可使用）']
            var luck_num = 2;
            $('.inner').empty();
            $('.cover-heading').empty();
            $('.jumbotron').empty();
            $('.jumbotron').append('<h1>' + pool[luck_num] + '</h1>');
            $('.jumbotron').append('<h1>' + cond[luck_num] + '</h1>')
            $('.jumbotron').append('<p>' + '请点击下方按钮前往问卷' + '</p>');
            $('.jumbotron').after('<p class="lead"><a class="btn btn-lg btn-default" onclick="goto_problems()">Go to problems</a></p>');
            // alert(pool[luck_num]);
        }

        function goto_problems() {
            window.location.href = 'https://sojump.com/jq/14140261.aspx';
        }
    </script>
</body>

</html>